<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>学员风采</title>
    <link rel="icon"type="image/x-icon"  sizes="32x32" href="./logo.ico" />
    <link rel="stylesheet" href="./css/base.css" />
    <link rel="stylesheet" href="./css/index.css" />
    <link rel="stylesheet" href="./css/yuma.css" />
    <link rel="stylesheet" href="./css/student.css" />
    <style>
      .container {
        background: linear-gradient(to bottom, #a569f4, #e5b7ec, #e5b7ec);
        color: white;
        padding: 40px 20px;
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 10px;
      }

      header {
        text-align: center;
        margin-bottom: 40px;
      }

      h1 {
        font-size: 2.8rem;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        color: #fff;
      }

      .subtitle {
        font-size: 1.2rem;
        opacity: 0.9;
        max-width: 600px;
        margin: 0 auto 30px;
      }

      .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
      }

      .gallery-item {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transition: all 0.4s ease;
        aspect-ratio: 4/3;
        background: #000;
        cursor: pointer;
      }

      .gallery-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
      }

      .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }

      .gallery-item:hover .gallery-img {
        transform: scale(1.1);
      }

      .gallery-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        padding: 30px 20px 20px;
        transform: translateY(100%);
        transition: transform 0.4s ease;
      }

      .gallery-item:hover .gallery-overlay {
        transform: translateY(0);
      }

      .gallery-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
        color: #fff;
      }

      .gallery-category {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
      }

      /* 放大模态框样式 */
      .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .modal.active {
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 1;
      }

      .modal-content {
        max-width: 90%;
        max-height: 90%;
        position: relative;
        transform: scale(0.7);
        transition: transform 0.4s ease;
      }

      .modal.active .modal-content {
        transform: scale(1);
      }

      .modal-img {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
      }

      .modal-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
        padding: 30px 20px 20px;
        color: white;
        border-radius: 0 0 8px 8px;
      }

      .modal-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
      }

      .modal-category {
        display: inline-block;
        background: rgba(255, 255, 255, 0.3);
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 1rem;
      }

      .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        z-index: 1001;
      }

      .close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
      }

      .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        z-index: 1001;
      }

      .nav-btn:hover {
        background: rgba(255, 255, 255, 0.3);
      }

      .prev-btn {
        left: 20px;
      }

      .next-btn {
        right: 20px;
      }

      footer {
        text-align: center;
        margin-top: 60px;
        opacity: 0.7;
        font-size: 0.9rem;
      }

      @media (max-width: 768px) {
        .gallery {
          grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
          gap: 15px;
        }

        h1 {
          font-size: 2.2rem;
        }

        .nav-btn {
          width: 40px;
          height: 40px;
          font-size: 1.2rem;
        }

        .prev-btn {
          left: 10px;
        }

        .next-btn {
          right: 10px;
        }
      }

      @media (max-width: 480px) {
        .gallery {
          grid-template-columns: 1fr 1fr;
        }

        h1 {
          font-size: 1.8rem;
        }

        .modal-title {
          font-size: 1.4rem;
        }
      }

      .employment-table {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        overflow: hidden;
      }

      /* .header {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            color: white;
            padding: 30px;
            text-align: center;
        } */

      .header h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
        font-weight: 700;
      }

      .header p {
        font-size: 1.2em;
        opacity: 0.9;
      }

      .stats-bar {
        background: #ecf0f1;
        padding: 15px 30px;
        display: flex;
        justify-content: space-around;
        border-bottom: 2px solid #bdc3c7;
      }

      .stat-item {
        text-align: center;
      }

      .stat-value {
        font-size: 1.8em;
        font-weight: bold;
        color: #e74c3c;
      }

      .stat-label {
        font-size: 0.9em;
        color: #7f8c8d;
        margin-top: 5px;
      }

      table {
        width: 100%;
        border-collapse: collapse;
      }

      thead {
        background: #34495e;
        color: white;
      }

      th {
        padding: 20px 15px;
        text-align: center;
        font-size: 1.1em;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      tbody tr {
        border-bottom: 1px solid #ecf0f1;
        transition: all 0.3s ease;
      }

      tbody tr:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      td {
        padding: 18px 15px;
        text-align: center;
        font-size: 1em;
        color: #2c3e50;
      }

      .student-name {
        font-weight: 600;
        color: #2c3e50;
      }

      .company-name {
        color: #3498db;
        font-weight: 500;
      }

      .salary {
        color: #e74c3c;
        font-weight: bold;
        font-size: 1.1em;
      }

      .education {
        background: #ecf0f1;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 0.9em;
        display: inline-block;
      }

      .footer {
        background: #2c3e50;
        color: white;
        text-align: center;
        padding: 20px;
        font-size: 0.9em;
      }

      .highlight {
        background: linear-gradient(135deg, #ffeaa7, #fab1a0);
        position: relative;
      }

      .highlight::before {
        content: '🔥';
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
      }

      @media (max-width: 768px) {
        th,
        td {
          padding: 12px 8px;
          font-size: 0.9em;
        }

        .header h1 {
          font-size: 2em;
        }

        .stat-value {
          font-size: 1.4em;
        }
      }
      footer {
        height: 300px;
        background: #008c4e;
        position: relative;
        opacity: 1;
      }
      footer > .content {
        width: 1190px;
        margin: 0 auto;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      footer > .content .logo {
        width: 184px;
      }
      footer > .content .logo img {
        width: 184px;
      }
      footer > .content .c .nav {
        display: flex;
        justify-content: space-between;
        margin-bottom: 33px;
      }
      footer > .content .c .nav a {
        color: #fff;
      }
      footer > .content .c .nav span {
        color: #fff;
      }
      footer > .content .c .addr,
      footer > .content .c .wx {
        display: flex;
        align-items: flex-start;
      }
      footer > .content .c .addr .content,
      footer > .content .c .wx .content {
        flex-wrap: wrap;
        color: #fff;
      }
      footer > .content .c .addr .content .addr-1,
      footer > .content .c .wx .content .addr-1,
      footer > .content .c .addr .content .addr-2,
      footer > .content .c .wx .content .addr-2 {
        display: flex;
      }
      footer > .content .c .addr .content .addr-1 .t,
      footer > .content .c .wx .content .addr-1 .t,
      footer > .content .c .addr .content .addr-2 .t,
      footer > .content .c .wx .content .addr-2 .t {
        width: 50px;
        text-align-last: justify;
      }
      footer > .content .c .addr .content .addr-1 span,
      footer > .content .c .wx .content .addr-1 span,
      footer > .content .c .addr .content .addr-2 span,
      footer > .content .c .wx .content .addr-2 span {
        margin: 0 5px;
      }
      footer > .content .c .wx {
        margin-top: 20px;
      }
      footer > .content .c .tb {
        border-radius: 3px;
        text-align: center;
        line-height: 22px;
        flex-shrink: 0;
        margin-right: 15px;
        color: #fff;
      }
      .wx .link {
        color: #fff;
      }
    </style>
  </head>
  <body>
    <div class="header">
      <div class="w clearfix">
        <div class="left_logo">
          <a href="http://www.yumacode.com/">
            <img src="./img/logo1.png" alt="" />
          </a>
        </div>
        <div class="right_navlis">
          <ul>
            <li><a href="./index.html">首页</a></li>
            <li><a href="./course.html">课程</a></li>
            <li><a href="./teacher.html">名师团队</a></li>
            <li><a href="./student.html" class="active">学员风采</a></li>
            <li><a href="./learn.html">联系我们</a></li>
          </ul>
        </div>
      </div>
    </div>
    <!-- <div class="banner">
      <div class="title">暖心，他们在御码收获梦想</div>
      <div class="desc">御码进入IT职场</div>
      <div class="e-desc">DREAM</div>
      <div class="dy">YUMA EDUCATION</div>
    </div> -->

    <div class="active-wrap">
      <div class="title">
        <div class="btns pre active"  style="font-size: 40px;">就业榜</div>
        <div class="btns ac" style="font-size: 40px;">精彩活动</div>
      </div>
      <div class="content">
        <div class="citme employment-table" style="display: block">
          <div class="stats-bar" style="background-color: #a569f4;">
            <div class="stat-item">
              <div class="stat-value" style="color: #fff;">¥24.00万</div>
              <div class="stat-label" style="color: #fff;">最高年薪</div>
            </div>
            <div class="stat-item">
              <div class="stat-value" style="color: #fff;">¥14.4万</div>
              <div class="stat-label" style="color: #fff;">平均年薪</div>
            </div>
            <div class="stat-item">
              <div class="stat-value" style="color: #fff;">96.7%</div>
              <div class="stat-label" style="color: #fff;">就业率</div>
            </div>
          </div>

          <table>
            <thead>
              <tr>
                <th width="15%">学员姓名</th>
                <th width="25%">入职公司</th>
                <th width="20%">年薪</th>
                <th width="15%">学历</th>
                <th width="25%">技术方向</th>
              </tr>
            </thead>
            <tbody>
              <!-- <tr>
                <td class="student-name">许同学</td>
                <td class="company-name">SALESFORCE</td>
                <td class="salary">¥121万</td>
                <td><span class="education">本科</span></td>
                <td>全栈开发</td>
              </tr> -->
            </tbody>
          </table>
        </div>

        <div class="citme container" style="display: none">
          <header>
            <h1>御码精彩瞬间活动</h1>
          </header>

          <div class="gallery" id="gallery">
            <!-- 图片将通过JavaScript动态生成 -->
          </div>
        </div>

        <!-- 放大模态框 -->
        <div class="modal" id="imageModal">
          <button class="close-btn" id="closeModal">&times;</button>
          <button class="nav-btn prev-btn" id="prevBtn">&lt;</button>
          <button class="nav-btn next-btn" id="nextBtn">&gt;</button>
          <div class="modal-content">
            <img class="modal-img" id="modalImage" src="" alt="" />
            <div class="modal-info">
              <h2 class="modal-title" id="modalTitle"></h2>
              <span class="modal-category" id="modalCategory"></span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <footer style="background-color: #7b51bf;">
      <div class="content">
        <div class="logo">
          <img src="./img/logo1.png" alt="" />
        </div>
        <div class="c">
          <div class="nav">
            <a href="./index.html">首页</a>
            <span>|</span>
            <a href="./course.html">课程学习</a>
            <span>|</span>
            <a href="./teacher.html">名师团队</a>
            <span>|</span>
            <a href="./learn.html">联系御码</a>
          </div>
          <div class="addr">
            <div class="tb">地址:</div>
            <div class="content">
              <div class="addr-1">
                <div class="t">辽宁省</div>
                <span>|</span>
                <div>大连市,高新园区嘉创大厦1602</div>
              </div>
            </div>
          </div>
          <div class="wx">
            <div class="content">
              <span style="display: block; margin-bottom: 20px; text-align: left;">抖音扫码添加: action_li</span>
          
              <span>微信扫码添加:  <img src="./img/wx.jpg" width="80px" style="margin-left: 10px; border-radius: 5px;" alt=""></span>
            </div>
          </div>
        </div>
      </div>
    </footer>
  </body>
  <script>
    // 图片数据
    const images = [
      {
        id: 1,
        src: './active/2.webp',
        title: '徒步大会',
        category: '御码大佬'
      },
       {
        id: 2,
        src: './active/1.webp',
        title: '徒步大会',
        category: '徒步起点'
      },
      {
        id: 3,
        src: './active/3.webp',
        title: '徒步大会',
        category: '海洋老师'
      },
      {
        id: 4,
        src: './active/s4.webp',
        title: '徒步大会',
        category: '御码帅哥之一'
      },
      {
        id: 5,
        src: './active/4.webp',
        title: '徒步大会',
        category: '御码二帅'
      },
      {
        id: 6,
        src: './active/5.webp',
        title: '徒步大会',
        category: '芮老师'
      },
      {
        id: 7,
        src: './active/6.webp',
        title: '徒步大会',
        category: '哪位是张老师'
      },
      {
        id: 8,
        src: './active/7.webp',
        title: '徒步大会',
        category: '小白同学'
      },
      {
        id: 9,
        src: './active/8.webp',
        title: '徒步大会',
        category: 'Java学生'
      },
      {
        id: 10,
        src: './active/9.webp',
        title: '徒步大会',
        category: '学霸二人组'
      },
      {
        id: 11,
        src: './active/10.webp',
        title: '徒步大会',
        category: '前端李同学'
      },
      {
        id: 12,
        src: './active/11.webp',
        title: '徒步大会',
        category: '沿途风景'
      },
      {
        id: 13,
        src: './active/12.webp',
        title: '徒步大会',
        category: '老两口'
      },
      {
        id: 14,
        src: './active/13.webp',
        title: '徒步大会',
        category: '御码李老师'
      },
      {
        id: 15,
        src: './active/14.webp',
        title: '徒步大会',
        category: '师生情'
      },
      {
        id: 16,
        src: './active/15.webp',
        title: '徒步大会',
        category: '漂亮警花'
      },
       {
        id: 17,
        src: './active/16.webp',
        title: '徒步大会',
        category: '御码三人组'
      },
      {
        id: 18,
        src: './active/17.webp',
        title: '徒步大会',
        category: '年轻真好'
      },
      {
        id: 19,
        src: './active/19.webp',
        title: '徒步大会',
        category: '偶遇小动物'
      },
      {
        id: 20,
        src: './active/18.webp',
        title: '徒步大会',
        category: '遥望'
      },
    ]

    // 初始化图片墙
    function initGallery() {
      const gallery = document.getElementById('gallery')

      images.forEach((image, index) => {
        const item = document.createElement('div')
        item.className = 'gallery-item'
        item.setAttribute('data-index', index)

        item.innerHTML = `
                    <img src="${image.src}" alt="${image.title}" class="gallery-img">
                    <div class="gallery-overlay">
                        <h3 class="gallery-title">${image.title}</h3>
                        <span class="gallery-category">${image.category}</span>
                    </div>
                `

        // 添加点击事件
        item.addEventListener('click', () => openModal(index))

        gallery.appendChild(item)
      })
    }

    // 打开模态框
    function openModal(index) {
      const modal = document.getElementById('imageModal')
      const modalImage = document.getElementById('modalImage')
      const modalTitle = document.getElementById('modalTitle')
      const modalCategory = document.getElementById('modalCategory')

      // 设置当前显示的图片索引
      currentIndex = index

      // 更新模态框内容
      modalImage.src = images[index].src
      modalTitle.textContent = images[index].title
      modalCategory.textContent = images[index].category

      // 显示模态框
      modal.classList.add('active')

      // 阻止背景滚动
      document.body.style.overflow = 'hidden'
    }

    // 关闭模态框
    function closeModal() {
      const modal = document.getElementById('imageModal')
      modal.classList.remove('active')

      // 恢复背景滚动
      document.body.style.overflow = 'auto'
    }

    // 导航到上一张图片
    function prevImage() {
      currentIndex = (currentIndex - 1 + images.length) % images.length
      openModal(currentIndex)
    }

    // 导航到下一张图片
    function nextImage() {
      currentIndex = (currentIndex + 1) % images.length
      openModal(currentIndex)
    }

    // 全局变量
    let currentIndex = 0

    // 页面加载完成后初始化
    document.addEventListener('DOMContentLoaded', () => {
      initGallery()

      // 绑定事件
      document.getElementById('closeModal').addEventListener('click', closeModal)
      document.getElementById('prevBtn').addEventListener('click', prevImage)
      document.getElementById('nextBtn').addEventListener('click', nextImage)

      // 点击模态框背景关闭
      document.getElementById('imageModal').addEventListener('click', e => {
        if (e.target === document.getElementById('imageModal')) {
          closeModal()
        }
      })

      // 键盘导航
      document.addEventListener('keydown', e => {
        if (!document.getElementById('imageModal').classList.contains('active')) return

        switch (e.key) {
          case 'Escape':
            closeModal()
            break
          case 'ArrowLeft':
            prevImage()
            break
          case 'ArrowRight':
            nextImage()
            break
        }
      })
    })

    // 展示就业数据
    let StuMSt = [
         {
        name: '张*津',
        company: '上海**科技有限公司',
        salary: '14K',
        education: '211院校',
        position: '前端'
      },
       {
        name: '薛*祺',
        company: '上海**信息技术有限公司',
        salary: '15K',
        education: '研究生',
        position: '前端'
      },
      {
        name: '李*萌',
        company: '大连**信息技术有限公司',
        salary: '8K',
        education: '本科',
        position: '前端'
      },
     
      {
        name: '陈*',
        company: '杭州**信息技术有限公司',
        salary: '14K',
        education: '本科',
        position: '前端'
      },
      {
        name: '卢*佳',
        company: '大连**信息技术有限公司',
        salary: '8K',
        education: '本科',
        position: '前端'
      },
      {
        name: '房*童',
        company: '杭州**电子技术有限公司',
        salary: '12K',
        education: '本科',
        position: 'Java'
      },
      {
        name: '周*杰',
        company: '杭州**科技有限公司',
        salary: '12K',
        education: '本科',
        position: 'Java'
      },
      {
        name: '常*贺',
        company: '常州**信息技术有限公司',
        salary: '7K',
        education: '本科',
        position: '前端'
      },
   
      {
        name: '刘*艺',
        company: '大连**科技有限公司',
        salary: '8K',
        education: '本科',
        position: 'Java'
      },
      {
        name: '夏*涛',
        company: '杭州**网络有限公司',
        salary: '11.5k',
        education: '本科',
        position: 'Java'
      },
      {
        name: '崔*巍',
        company: '上海**软件有限公司',
        salary: '12k',
        education: '本科',
        position: 'Java'
      },
      {
        name: '徐*航',
        company: '广州**系统有限公司',
        salary: '14k',
        education: '本科',
        position: 'Java'
      },
      {
        name: '杨*杰',
        company: '上海**信息科技有限公司',
        salary: '11k',
        education: '本科',
        position: '前端'
      },
      {
        name: '赵*燕',
        company: '北京**智能技术有限公司',
        salary: '10.5k',
        education: '本科',
        position: '全栈'
      },
      {
        name: '黄*强',
        company: '杭州**数据有限公司',
        salary: '13k',
        education: '本科',
        position: 'Java'
      },
      {
        name: '周*',
        company: '深圳**科技有限公司',
        salary: '10k',
        education: '本科',
        position: '前端'
      },
      {
        name: '吴*琳',
        company: '广州**软件开发公司',
        salary: '9.5k',
        education: '本科',
        position: '全栈'
      },
      {
        name: '徐*浩',
        company: '上海**应用有限公司',
        salary: '10.5k',
        education: '本科',
        position: 'Java'
      },
      {
        name: '孙*',
        company: '北京**信息服务有限公司',
        salary: '12k',
        education: '本科',
        position: '前端'
      },
      {
        name: '朱*鹏',
        company: '杭州**科技发展有限公司',
        salary: '15k',
        education: '本科',
        position: '全栈'
      },
      {
        name: '马*欣',
        company: '深圳**创新科技有限公司',
        salary: '14k',
        education: '本科',
        position: 'Java'
      },
      {
        name: '胡*',
        company: '广州**软件技术有限公司',
        salary: '11k',
        education: '本科',
        position: '前端'
      }
    ]
    let employment_table = document.querySelector('.employment-table table  tbody')
    employment_table.innerHTML = StuMSt.map(function (item) {
      return ` <tr>
                <td class="student-name">${item.name}</td>
                <td class="company-name">${item.company}</td>
                <td class="salary">${item.salary}</td>
                <td><span class="education">${item.education}</span></td>
                <td>${item.position}</td>
              </tr>`
    }).join('')

    // 就业薪资
    let btns = document.querySelectorAll('.active-wrap .btns')
    let citmes = document.querySelectorAll('.citme')
    btns.forEach(function (btn, index) {
      btn.onmouseenter = function () {
        document.querySelector('.active-wrap .title .active').classList.remove('active')
        this.classList.add('active')

        for (let i = 0; i < citmes.length; i++) {
          citmes[i].style.display = 'none'
        }
        citmes[index].style.display = 'block'
      }
    })
  </script>
</html>
